<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/share/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <title>用户详情</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<%@ include file="/WEB-INF/share/easyuilist.jsp"%>
    <script type="text/javascript">
	    var keyValue = request('id');
	    var instanceId = "";
	    var formId = "";
	    $(function () {
	    })
	    //保存表单
	    function AcceptClick() {
	        if (!$('#form1').Validform()) {
	            return false;
	        }
	        var postData = $("#form1").GetWebControls(keyValue);
	        postData["id"] = keyValue;
	        $.SaveForm({
	            url: "${ctx}/user/save",
	            param: postData,
	            loading: "正在保存数据...",
	            success: function (data) {
	                $.currentIframe().$("#gridTable").trigger("reloadGrid");
	            }
	        })
	    }
	</script>
</head>
<body>
<form id="form1">
<input id="id" value="${user.id}" type="hidden"/>
<input id="isuse" value="${user.isuse}" type="hidden"/>
<div style="margin-left: 10px; margin-right: 10px;">
        <div id="BaseInfo" class="tab-pane active" style=" padding-right: 30px;">
            <table class="form">
                <tr>
                    <td class="formTitle">账户<font face="宋体">*</font></td>
                    <td class="formValue">
                        <input id="account" value="${user.account}" type="text" onblur="$.ExistField(this.id,'${ctx}/user/ExistAccount')" class="form-control" placeholder="请输入账户" isvalid="yes" checkexpession="NotNull" />
                    </td>
                </tr>
                <c:if test="${empty user.id}">
                <tr>
                    <td class="formTitle">密码<font face="宋体">*</font></td>
                    <td class="formValue">
                        <input id="password" value="${user.password}" type="password" class="form-control" placeholder="请输入密码" isvalid="yes" checkexpession="NotNull" />
                    </td>
                </tr>
                </c:if>
                <tr>
                    <td class="formTitle">姓名</td>
                    <td class="formValue">
                        <input id="username" value="${user.username}" type="text" class="form-control" placeholder="请输入姓名"/>
                    </td>
                </tr>
                <tr>
                    <td class="formTitle">联系方式</td>
                    <td class="formValue">
                        <input id="tel" value="${user.tel}" type="text" class="form-control" placeholder="请输入联系方式"/>
                    </td>
                </tr>
                <tr>
                    <td class="formTitle">微信号</td>
                    <td class="formValue">
                        <input id="wxnumber" value="${user.wxnumber}" type="text" class="form-control" placeholder="请输入微信号"/>
                    </td>
                </tr>
                <tr>
                    <td class="formTitle">职位</td>
                    <td class="formValue">
                        <input id="job" value="${user.job}" type="text" class="form-control" placeholder="请输入职位信息"/>
                    </td>
                </tr>
                <tr>
                    <th class="formTitle" valign="top" style="padding-top: 4px;">备注
                    </th>
                    <td class="formValue">
                        <textarea id="remark" class="form-control" style="height: 50px;">${user.remark}</textarea>
                    </td>
                </tr>
            </table>
        </div>
</div>
</form>
</body>
</html>
